.class Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;
.super Lcom/estrongs/fs/impl/usb/fs/ntfs/l$c;
.source "FileRecord.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/fs/impl/usb/fs/ntfs/l;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "d"
.end annotation


# instance fields
.field private a:Ljava/util/Iterator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Iterator<",
            "Les/s50;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic b:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;


# direct methods
.method private constructor <init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;)V
    .locals 4

    .line 2
    iput-object p1, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->b:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    invoke-direct {p0, p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$c;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;)V

    .line 3
    :try_start_0
    iget-object v0, p1, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->e:Les/o50;

    invoke-interface {v0}, Les/o50;->a()Ljava/util/Iterator;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->a:Ljava/util/Iterator;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 4
    invoke-static {}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->s()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Error getting attributes from attribute list, file record "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v1, p1, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 5
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    .line 6
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->a:Ljava/util/Iterator;

    :goto_0
    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;Lcom/estrongs/fs/impl/usb/fs/ntfs/l$a;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;)V

    return-void
.end method


# virtual methods
.method public a()Les/t50;
    .locals 6

    .line 1
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    .line 2
    iget-object v1, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->a:Ljava/util/Iterator;

    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 3
    iget-object v1, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->a:Ljava/util/Iterator;

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/s50;

    .line 4
    invoke-virtual {v1}, Les/s50;->c()I

    move-result v2

    .line 5
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    .line 6
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 7
    :try_start_0
    invoke-virtual {v1}, Les/s50;->d()J

    move-result-wide v2

    iget-object v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->b:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    invoke-static {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->a(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;)J

    move-result-wide v4

    cmp-long v0, v2, v4

    if-nez v0, :cond_0

    .line 8
    iget-object v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->b:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    goto :goto_0

    .line 9
    :cond_0
    iget-object v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/l$d;->b:Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/r;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/t;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/t;->c()Lcom/estrongs/fs/impl/usb/fs/ntfs/m;

    move-result-object v0

    invoke-virtual {v1}, Les/s50;->d()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->a(J)Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object v0

    .line 10
    :goto_0
    invoke-virtual {v1}, Les/s50;->c()I

    move-result v2

    invoke-static {v0, v2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->a(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;I)Les/t50;

    move-result-object v0
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception v0

    .line 11
    new-instance v2, Ljava/lang/IllegalStateException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Error getting MFT or FileRecord for attribute in list, ref = 0x"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 12
    invoke-virtual {v1}, Les/s50;->d()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v2, v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v2

    .line 13
    :cond_1
    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Hit the same attribute ID more than once, aborting. ref = 0x"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 14
    invoke-virtual {v1}, Les/s50;->d()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " id="

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    const/4 v0, 0x0

    return-object v0
.end method
